package engine;

public class World {
	
	private Player [] p;
	private Fanion [] f;
	private int nb_players;
	private int nb_players_now = 0;
	private int nb_fanions;
	private int size_worldX;
	private int size_worldY;
	
	public World(int nb_players, int nb_fanions, int size_worldX, int size_worldY){
		this.nb_players = nb_players;
		this.nb_fanions = nb_fanions;
		this.size_worldX = size_worldX;
		this.size_worldY = size_worldY;
		this.p = new Player [nb_players];
		this.f = new Fanion [nb_fanions];
	}
	
	public Player[] getPlayers(){
		return this.p;
	}
	
	public Fanion[] getFanion(){
		return this.f;
	}
	
	public int getNbPlayers(){
		return this.nb_players;
	}
	
	public int getNbPlayersNow(){
		return this.nb_players_now;
	}
	
	public void minusNbPlayersNow(){
		this.nb_players_now = this.nb_players_now - 1;
	}
	
	public void plusNbPlayersNow(){
		this.nb_players_now = this.nb_players_now + 1;
	}
	
	public int getNbFanion(){
		return this.nb_fanions;
	}
	
	public int getSWorldX(){
		return this.size_worldX;
	}
	
	public int getSWorldY(){
		return this.size_worldY;
	}
}